<?php
class Member_positionAction extends CommonAction {
	public function index(){
        $map['site_id']=$this->siteid;
		$list=$this->dao->getList($map);
		$this->assign('list',$list);
		
		

		
		$this->display();
	}
	public function delete(){
		if($this->_get('id')){
			parent::delete();
		}
	}
	public function add(){
		parent::add();
	}
	public function edit(){
		parent::edit();
	}
	public function update(){
		if(IS_POST){
			$map['id']=$this->_get('id');
			$map['site_id']=$this->siteid;
			$list=$this->dao->getList($map);
			$this->assign('info',$list[0]);
			parent::update();
		}
	}
	public function insert(){
		if(IS_POST){
			$_POST['site_id'] =$this->siteid;
			parent::insert();
		}
	}
}

?>